#ifndef __SEARCH_SORTED_MATRIX_H__
#define __SEARCH_SORTED_MATRIX_H__

// If found, return value is 0, and the output is in the index_i,
// and index_j;
// If not found, return value is -1
bool searchSortedMatrix1(int *matrix, 
                         int m, 
                         int n, 
                         int elem, 
                         int &index_i, 
                         int &index_j);

bool searchSortedMatrix2(int *matrix, 
                         int m, 
                         int n, 
                         int elem, 
                         int &index_i, 
                         int &index_j);

#endif

